﻿// See https://aka.ms/new-console-template for more information
Console.WriteLine("Hello, World!");
//using System;//

//class NarcissisticNumbers
//{
   // static void Main()
    //{
        Console.WriteLine("水仙花数：");

        for (int i = 100; i < 1000; i++)
        {
            int hundreds = i / 100;
            int tens = (i / 10) % 10;
            int units = i % 10;

            if (i == Math.Pow(hundreds, 3) + Math.Pow(tens, 3) + Math.Pow(units, 3))
            {
                Console.Write(i + " ");
            }
        }

        Console.WriteLine();
    //}
//}